function result = ShiftRows(matrix, r1, r2)
%Shift rows in a matrix
if (r1 ~= r2)
        shiftMatrix = 1 : size(matrix, 1);
        shiftMatrix(r1) = r2;
        shiftMatrix(r2) = r1;
        result = matrix(shiftMatrix, : );
else 
    result = matrix;
end

